package com.crm.service;

import com.crm.constant.dto.BaseFxResponse;
import com.crm.entity.CrmEmployee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.crm.model.bo.EmployeeBo;
import com.crm.model.bo.EmployeePageBo;
import com.crm.model.bo.LoginBo;
import com.crm.model.dto.BasePageResult;
import com.crm.model.vo.EmployeeVo;

/**
 * <p>
 * CRM-员工表 服务类
 * </p>
 *
 * @author CRM_SYSTEM
 * @since 2022-03-30
 */
public interface ICrmEmployeeService extends IService<CrmEmployee> {

    BaseFxResponse<?> login(LoginBo loginBo);

    EmployeeVo queryByPhone(String phone);

    BasePageResult<CrmEmployee> queryPage(EmployeePageBo employeePageBo);

    BaseFxResponse<Long> saveEmp(EmployeeBo employeeBo);

    BaseFxResponse<Long> updateEmp(EmployeeBo employeeBo);

    EmployeeVo queryById(Long employeeId);
}
